import { mergeRsbuildConfig } from '@rsbuild/core';
import rsbuildConfig from './rsbuild.config';
import { pluginModuleFederation } from '@module-federation/rsbuild-plugin';

export default mergeRsbuildConfig(rsbuildConfig, {
  plugins: [
    pluginModuleFederation({
      name: 'rsbuild_provider',
      filename: './src/index.ts',
      exposes: {
        './AppButton': './src/components/AppButton.ts',
      },
      shared: ['lit'],
    }),
  ],
});
